﻿namespace DocumentBuilderServer.Infrastructures
{
    public class FileWriter : IDisposable
    {
        public FileStream Stream;
        public DateTime CreateTime;
        public string Path;
        public FileWriter(FileStream fs, string path)
        {
            Stream = fs;
            CreateTime = DateTime.Now;
            Path = path;
        }

        public void Dispose()
        {
            Stream?.Dispose();
        }
    }
}
